openssl s_client
命令手册OpenSSL command to create TLS client connections. More information: https://www.openssl.org/docs/manmaster/man1/openssl-s_client.html.
openssl s_client -connect {{host}}:{{port}} 2>/dev/null | openssl x509 -noout -dates
openssl s_client -connect {{host}}:{{port}} </dev/null
openssl s_client -connect {{host}}:443 -showcerts </dev/null